package ui
{
	import flash.display.CapsStyle;
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	
	public class UIRadioTab extends Sprite 
	{
		public var id:int; 
		
		public function UIRadioTab(w:int, h:int)
		{
			super();
			var g:Graphics = this.graphics;
			g.lineStyle(4, 0xE0C290, 1, false, "normal", CapsStyle.NONE);
			g.beginFill(0xC09761);
			g.drawRoundRectComplex(0, 0, w, h, 16, 16, 0, 0);
			g.endFill();
			g.lineStyle(4, 0xC09761, 1, false, "normal", CapsStyle.NONE);
			g.moveTo(0, h);
			g.lineTo(w, h);			
		}
		
		public function select():void {
			this.transform.colorTransform = new ColorTransform();			
		}
		
		public function unselect():void {
			this.transform.colorTransform = new ColorTransform(0.8, 0.8, 0.8);			
		}
		
	}
}